#include <iostream>
#include <list>
#include <string>
#include <deque>

using namespace std;

void test0(){
    string str;
    cin >> str;

    deque<char> Deque;

    for(auto i : str){
        Deque.push_back(i);
    }

    for(auto i = Deque.begin(); i != Deque.end(); ++i){
        cout << *i << " ";
    }

    cout  << endl;
}

int main()
{
    test0();

    return 0;
}

